package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.dto.BackQueryParam;
import com.kingint.mbg.dto.rushHouse.RushHouseBackParam;
import com.kingint.mbg.dto.rushHouse.RushHouseFrontParam;
import com.kingint.mbg.ser.entity.SerRushHouse;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;

/**
 * <p>
 * 发布赶房表 服务类
 * </p>
 *
 * @author wxh
 * @since 2021-01-07
 */
public interface SerRushHouseService extends IService<SerRushHouse> {

    /**
     * 添加赶房工单
     * @param serRushHouse
     * @return
     */
    int insertRushHouseInfo(RushHouseFrontParam serRushHouse);


    /**
     * 删除赶房信息
     * @param id
     * @return
     */
    int deleteRushHouseInfo(Integer id);

    /**
     * 分页查询赶房工单
     * @param param
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<RushHouseBackParam> getRushHouseList(BackQueryParam param, Integer pageNum, Integer pageSize);


    /**
     * 查询赶房相关信息
     * @param id
     * @return
     */
    SerRushHouse getRushHouseInfo(Integer id);

    /**
     * 验收赶房工单
     * @param status
     * @param id
     * @return
     */
    int completeRushHouseInfo(Integer status, Integer id);
}
